package com.javafactroy.kunlong.bip.icp.common.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Aspect
@Slf4j
public class TgeneralCheck {
    @Pointcut("@annotation(com.javafactroy.kunlong.bip.icp.common.annotation.GeneralCheck)")
    @Order(2)
    public void pointCut() {
    }

    @Before(value = "pointCut()")
    public Object check(JoinPoint joinPoint){
        log.info("{}",joinPoint);
        return null;
    }
}
